/*
package com.second.hand.trading.server.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {


    @Override
    public void addCorsMappings(CorsRegistry registry) {
        */
/*
         *   本应用的所有方法都会去处理跨域请求
         *//*

        registry.addMapping("/**")
                .allowedOrigins("*")
                .allowedMethods("*")
                .allowCredentials(true)   //带上cookie信息
                .allowedHeaders("*")
                .maxAge(3600);
    }
}
*/
